import 'package:f_enjoy_plus/pages/home/components/HomeList.dart';
import 'package:f_enjoy_plus/pages/home/components/HomeNav.dart';
import 'package:f_enjoy_plus/core/constants/app_colors.dart';
import 'package:f_enjoy_plus/components/Header.dart';
import 'package:flutter/material.dart';

class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: AppColors.primaryLight,
      appBar: Header(title: '享+社区'),
      body: SingleChildScrollView(
        child: Padding(
          padding: EdgeInsets.all(12),
          child: Column(
            children: [
              HomeNav(),
              SizedBox(height: 12),
              ClipRRect(
                borderRadius: BorderRadius.circular(8),
                child: Image.asset('assets/images/banner@2x.jpg'),
              ),
              SizedBox(height: 12),
              HomeList(),
            ],
          ),
        ),
      ),
    );
  }
}
